import { createApp } from 'vue'
import './style.css'
import App from './App.vue'

//路由
import router from '@/router'

//网络请求
import { axios, VueAxios } from '@/axios'

import { createPinia } from 'pinia'
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'

//创建pinia实例
const pinia = createPinia()
//引用pinia持久化插件
pinia.use(piniaPluginPersistedstate)

//日期格式化
import dayjs from 'dayjs'

let app = createApp(App)
app.use(router)
app.use(VueAxios, axios)
app.use(pinia)
app.config.globalProperties.dayjs = dayjs//全局挂载
app.mount('#app')
